package com.parking.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2023年11月28日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("entrance_info")
public class EntranceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 入场信息id'
     */
    @TableId(value = "entrance_info_id", type = IdType.AUTO)
    private Integer entranceInfoId;

    /**
     * 用户信息id
     */
    @TableField("user_info_id")
    private Integer userInfoId;

    /**
     * 入场车牌号
     */
    @TableField("entrance_info_plate")
    private String entranceInfoPlate;

    /**
     * 入场时间
     */
    @TableField("entrance_enter_time")
    private LocalDateTime entranceEnterTime;

    /**
     * 出场时间
     */
    @TableField("entrance_out_time")
    private LocalDateTime entranceOutTime;

    /**
     * 物业信息id
     */
    @TableField("certified_info_id")
    private Integer certifiedInfoId;

    /**
     * 物业名称
     */
    @TableField("certified_info_name")
    private String certifiedInfoName;

    /**
     * 入场图片
     */
    @TableField("entrance_img")
    private String entranceImg;

    /**
     * 车位信息id
     */
    @TableField("stall_info_id")
    private Integer stallInfoId;

    /**
     * 车位号
     * */
    @TableField("stall_info")
    private String stallInfo;

    /**
     * 订单编号
     * */
    @TableField("order_info_num")
    private String orderInfoNum;
    /**
     * 修改时间
     * */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 无参构造函数
     * */
    public EntranceInfo() {
    }

    /**
     * 构造函数
     * userInfoId 用户信息Id
     * entranceInfoPlate 入场车牌号
     * entranceEnterTime 入场时间
     * certifiedInfoId   物业信息Id
     * certifiedInfoName  物业名称
     * entranceImg        入场图片
     * stallInfoId        车位信息Id
     * */
    public EntranceInfo(Integer userInfoId, String entranceInfoPlate, LocalDateTime entranceEnterTime, Integer certifiedInfoId, String certifiedInfoName, String entranceImg, Integer stallInfoId, String orderInfoNum) {
        this.userInfoId = userInfoId;
        this.entranceInfoPlate = entranceInfoPlate;
        this.entranceEnterTime = entranceEnterTime;
        this.certifiedInfoId = certifiedInfoId;
        this.certifiedInfoName = certifiedInfoName;
        this.entranceImg = entranceImg;
        this.stallInfoId = stallInfoId;
        this.orderInfoNum = orderInfoNum;
    }
}
